<%@ page import="java.util.Enumeration" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>玉灵 QQ:7031633 Email:webrx@126.com</title>
</head>

<body>
<%
    if(request.getHeader("referer")==null){
        out.print("直接访问的");
    }else{
        out.print(request.getHeader("referer"));
    }

%>
<hr>
<%
    Enumeration<String> enums = request.getHeaderNames();
    while(enums.hasMoreElements()){
        String n = enums.nextElement();

        out.println(String.format("request.getHeader(\"%s\")=%s<br>",n,request.getHeader(n)));
    }
%>
</body>
</html>
